<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>日语在线考试</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
		<script type="text/javascript">
	function refresh() {
		document.getElementById("authImg").src = '/jpTest/User/servlet/authImg?now=' + new Date();
	}
    </script>
	</head>
	<body>
		<s:actionerror cssStyle="color:red" />
		<s:form action="login" method="post" theme="ajax" validate="true">
			<s:textfield name="user.userNickname" label="用户名" />
			<s:password name="user.userPassword" label="密码" />
			<s:textfield name="vercode" label="验证码" />
			<s:submit value="登录" />
			<s:reset value="重置" />
		</s:form>
		验证码如图(不区分大小写)：
		<img src="/jpTest/User/servlet/authImg" id="authImg" />
		看不清？
		<s:a href="" onclick="refresh()" cssStyle="color:red">单击此处刷新</s:a>
		<br>
		忘记密码？
		<a href="/jpTest/User/lost_password.jsp">找回密码</a>
		<br>
		还未注册？ <a href="/jpTest/User/register.jsp">开始注册</a>
	</body>
</html>
